<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=latin1">
        <link rel="stylesheet" type="text/css" href="../padrao.css" />
        <link rel="stylesheet" href="../jQuery/lista.css" type="text/css" media="all" />
        <script type="text/javascript" src="../jQuery/jquery-1.2.1.pack.js"></script>
        <script type="text/javascript" src="../jQuery/busca.js"></script>
        <script type="text/javascript" src="../sorttable.js"></script>

        <title> Template </title>

        <?php
        ob_start();
        include '../infobox.php';
        include '../verifica_usuario.php';
        include '../functions.php';
        include '../functions_office.php';
        include '../menu.php';
        ?>

    </head>
    <body>
        <div class="conteudo">

            <form method="POST" action="cadastrando_funcionarios.php">
                <table>
                    <tr>
                        <td>Login: </td>
                        <td> <input name="func_login" type="text" autocomplete='off'> </td>
                    </tr>
                    <tr>
                        <td>Senha: </td>
                        <td><input name="func_senha" type="text" autocomplete='off'></td>
                    </tr>
                    <tr>
                        <td>Nome:</td>
                        <td> <input name="func_nome" type="text" autocomplete='off'></td>
                    </tr>
                    <tr>
                        <td>Cargo: </td>
                        <td><input name="func_cargo" type="text" autocomplete='off'></td>
                    </tr>
                    <tr>
                        <td> Area </td>
                        <td> <select name='func_area' >
                                <option value = Portaria > Portaria </option>
                                <option value = Escritorio > Escritorio </option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>Aterro: (Caso a area seja portaria)</td>
                        <td>
                            <?php
                            include("mysqlconfig.inc");
                            $query = "SELECT nome FROM ATERROS";
                            /* You can add order by clause to the sql statement if the names are to be displayed in alphabetical order */
                            $result = mysql_query($query);
                            echo '<select name="aterro_nome"></option>';
                            // printing the list box select command
                            echo "<option value='NULL'>-------</option>";
                            while ($nt = mysql_fetch_array($result)) {//Array or records stored in $nt
                                echo "<option value='$nt[nome]'>$nt[nome]</option>";
                                /* Option values are added by looping through the array */
                            }
                            echo "</select>"; // Closing of list box
                            mysql_close($con);
                            ?>
                        </td>
                    </tr>
                    
                    <tr>
                        <td> <input value="Cadastrar Funcionario" type="submit"> </td>
                    </tr>
                </table>
            </form>
        </div>
    </body>
</html>

